# 列表的切片
names = ["小红","小明","小鹏","小李","小华"]
print(names[1],names[2])

# 如果从列表首位开始，可以省略0
print(names[0:3])
print(names[:3])

# 从末位开始取
print(names[-3:-1])
print(names[-3:])

# names.clear()
# print(names)